/**
 * 上海中赢金融信息服务有限公司
 * Copyright (c) 2017-2027 Chinazyjr,Inc.All Rights Reserved.
 */

package com.sys.midware.zookeeper.sample.zkclient;

import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;

/**
 * <b>ClassName:</b> DefaultZookeeperFactory.java <br/>
 * <b>Description:</b> TODO <br/>
 * <b>Date:</b>     2016年4月15日 下午3:26:18<br/> 
 * @author   mobing
 * @version  	 
 */
public class DefaultZookeeperFactory implements ZookeeperFactory {

    @Override
    public ZooKeeper newZooKeeper(String connectString, int sessionTimeout, Watcher watcher, boolean canBeReadOnly)
            throws Exception {
        
        return new ZooKeeper(connectString, sessionTimeout, watcher, canBeReadOnly);
    }

}

